import java.util.Calendar;
import java.util.HashSet;
import java.util.Set;

import javax.persistence.*;

@Entity
public class Facture {
    
    private int id;

    private float montant;	
	
    private Commande commande;
	
    private Calendar date;
    
    Set<Paiement> paiements = new HashSet<Paiement>();  
    
    public Facture(float montant, Commande commande){
    	this.montant=montant;
    	this.commande=commande;
    }
    
	public void setCommande(Commande commande) {
		this.commande=commande;
	}
    
	public Commande getCommande() {
		return commande;
	}
    
	public void setMontant(float montant) {
		this.montant=montant;
	}
    
	public float getMontant() {
		return montant;
	}	
	
	public Calendar getDate() {
		return date;
	}

	public void setDate(Calendar date) {
		this.date = date;
	}
	
	public function getEnAttente(){
		
	}
	
}